package com.application;

import android.app.Application;

import com.alibaba.android.arouter.BuildConfig;
import com.alibaba.android.arouter.launcher.ARouter;
import com.jeremyliao.liveeventbus.LiveEventBus;


public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();

        if (BuildConfig.DEBUG) {
            ARouter.openLog();
            ARouter.openDebug();
        }
        ARouter.init(this);

        LiveEventBus.config()
                .setContext(this)
                .enableLogger(true);
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
//        ARouter.getInstance().destroy();
    }
}
